﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Json2Excel
{
    /// <summary>
    /// 包含表头和表内容的一列。
    /// </summary>
    public class CSVColumn
    {
        public string Key { get; private set; }

        public string Name { get; set; }

        private List<string> data = new List<string>();
        public IList<string> Data { get { return this.data; } }

        public CSVColumn(string key)
        {
            this.Key = key;
        }

        public override string ToString()
        {
            return string.Format("Column({0})[{1}]", this.Key, this.data.Count);
        }

    }
}
